package cn.lcsjsxy.yxc.objectoriented.接口.java8及以后;

public interface CompareA {

    //静态
    public static void method1(){
        System.out.println("CompareA:北京");
    }

    //默认
    public default void method2(){
        System.out.println("CompareA:上海");
    }

    default void method3(){  //默认方法也可以省略public
        System.out.println("CompareA：广州");
    }


}
